/**
 * 2018年12月8日下午4:37:41
 * @author 谢进财
 */
package com.baihang.project.ds.entity.dbMap;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.baihang.project.ds.entity.LouDongEntity;

/**
 * @author whati
 *
 */

public class LouDongRowMapper implements RowMapper<LouDongEntity> {

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
	 */
	@Override
	public LouDongEntity mapRow(ResultSet rs, int rowNum) throws SQLException {
		if (!rs.wasNull()|| rs.getFetchSize()!=0) {
			LouDongEntity entity = new LouDongEntity();
			entity.setName(rs.getString("D_Unit"));			
			return entity;
		} else {
			return null;
		}
	}

}
